package org.iks.feign.service.user;

import org.iks.common.AjaxResult;
import org.iks.common.pojo.user.UserInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * Author kzou
 * Date 2024/2/19
 * Description:
 */

@FeignClient(value = "xim-user", path = "/user")
public interface UserRemoteService {

    @GetMapping("/query/info")
    AjaxResult<UserInfoVo> queryUserInfo(@RequestParam(required = false, value = "account") String account);

    @PostMapping("/query/info/batch")
    AjaxResult<List<UserInfoVo>> queryUserInfoBatch(@RequestBody Set<String> accounts);

}
